package ct.data;

import ct.model.DateSimple;
import ct.model.Obligation;
import ct.model.Portefeuille;

public class JeuxObligations {

	
	public static void importerTest(Portefeuille p){
		p.add(new Obligation("Ob 1", 100, 0, new DateSimple(1994, 11, 30), 1));
		p.add(new Obligation("Ob 2", 100, 0, new DateSimple(1994, 12, 7), 1));
		p.add(new Obligation("Ob 3", 100, 0, new DateSimple(1994, 12, 28), 1));
		p.add(new Obligation("Ob 4", 100, 0, new DateSimple(1994, 2, 22), 2));
		p.add(new Obligation("Ob 5", 100, 0, new DateSimple(1994, 3, 21), 2));
		p.add(new Obligation("Ob 6", 100, 0, new DateSimple(1994, 4, 18), 2));
		p.add(new Obligation("Ob 7", 100, 0, new DateSimple(1994, 6, 13), 2));
		p.add(new Obligation("Ob 8", 100, (float) 8.5, new DateSimple(1994, 11, 12), 2));
		p.add(new Obligation("Ob 9", 100, (float) 9, new DateSimple(1994, 3, 12), 3));
		p.add(new Obligation("Ob 10", 100, (float) 7.25, new DateSimple(1994, 8, 12), 3));
		p.add(new Obligation("Ob 11", 100, (float) 8.5, new DateSimple(1994, 11, 12), 3));
		p.add(new Obligation("Ob 12", 100, (float) 8, new DateSimple(1994, 5, 12), 4));
		p.add(new Obligation("Ob 13", 100, (float) 5.75, new DateSimple(1994, 11, 12), 4));
		p.add(new Obligation("Ob 14", 100, (float) 8.125, new DateSimple(1994, 5, 25), 5));
		p.add(new Obligation("Ob 15", 100, (float) 9, new DateSimple(1994, 3, 28), 6));
		p.add(new Obligation("Ob 16", 100, (float) 9.5, new DateSimple(1994, 1, 25), 7));
		p.add(new Obligation("Ob 17", 100, (float) 8.5, new DateSimple(1994, 11, 25), 8));
		p.add(new Obligation("Ob 18", 100, (float) 6.75, new DateSimple(1994, 10, 25), 9));
		p.add(new Obligation("Ob 19", 100, (float) 5.5, new DateSimple(1994, 4, 25), 10));
		p.add(new Obligation("Ob 20", 100, (float) 6.75, new DateSimple(1994, 10, 25), 10));
		p.add(new Obligation("Ob 21", 100, (float) 7.5, new DateSimple(1994, 4, 25), 11));
		p.add(new Obligation("Ob 22", 100, (float) 7, new DateSimple(1994, 10, 25), 11));
		p.add(new Obligation("Ob 23", 100, (float) 7.25, new DateSimple(1994, 4, 25), 12));
		p.add(new Obligation("Ob 24", 100, (float) 8.5, new DateSimple(1994, 10, 25), 14));
		p.add(new Obligation("Ob 25", 100, (float) 7.25, new DateSimple(1994, 12, 26), 18));
		p.get(0).setPrix(99.9717);
		p.get(1).setPrix(99.8727);
		p.get(2).setPrix(99.5809);
		p.get(3).setPrix(98.794);
		p.get(4).setPrix(98.3861);
		p.get(5).setPrix(98.0015);
		p.get(6).setPrix(97.2091);
		p.get(7).setPrix(103.3326);
		p.get(8).setPrix(109.9781);
		p.get(9).setPrix(105.2052);
		p.get(10).setPrix(105.9526);
		p.get(11).setPrix(109.9836);
		p.get(12).setPrix(100.3421);
		p.get(13).setPrix(111.3327);
		p.get(14).setPrix(115.1455);
		p.get(15).setPrix(122.5304);
		p.get(16).setPrix(110.9799);
		p.get(17).setPrix(101.0888);
		p.get(18).setPrix(95.3899);
		p.get(19).setPrix(100.4588);
		p.get(20).setPrix(109.0289);
		p.get(21).setPrix(107.0619);
		p.get(22).setPrix(106.9403);
		p.get(23).setPrix(113.0418);
		p.get(24).setPrix(119.4579);
		
		Parametres.MAX_INTERPOL = 20;
		Parametres.date_estimation = new DateSimple(1994,11,25);
	}
	
	
	public static void importerOAT(Portefeuille p){
		p.add(new Obligation("OAT 1", 100, (float)6., new DateSimple(1994, 10, 25), 31,119.09));
		p.add(new Obligation("OAT 2", 100, (float)3., new DateSimple(2005, 10, 25), 10,93.15));
		p.add(new Obligation("OAT 3", 100, (float)3.25, new DateSimple(2006, 4, 25), 10,94.15));
		p.add(new Obligation("OAT 4", 100, (float)3.5, new DateSimple(2005, 4, 25), 10,96.57));
		p.add(new Obligation("OAT 5", 100, (float)3.75, new DateSimple(2005, 4, 25), 16,94.18));
		p.add(new Obligation("OAT 6", 100, (float)3.75, new DateSimple(2007, 4, 25), 10,96.88));
		p.add(new Obligation("OAT 7", 100, (float)4., new DateSimple(2003, 4, 25), 10,100.16));
		p.add(new Obligation("OAT 8", 100, (float)4., new DateSimple(2003, 10, 25), 10,100.22));
		p.add(new Obligation("OAT 9", 100, (float)4., new DateSimple(2004, 4, 25), 10,100.03));
		p.add(new Obligation("OAT 10", 100, (float)4., new DateSimple(2004, 10, 25), 10,99.94));
		p.add(new Obligation("OAT 11", 100, (float) 4., new DateSimple(2005, 4, 25), 50,89.48));
		p.add(new Obligation("OAT 12", 100, (float) 4., new DateSimple(2006, 10, 25), 32,90.97));
		p.add(new Obligation("OAT 13", 100, (float) 4., new DateSimple(1998, 4, 25), 11,100.02));
		p.add(new Obligation("OAT 14", 100, (float) 4., new DateSimple(1999, 10, 25), 10,100.21));
		p.add(new Obligation("OAT 15", 100, (float) 4.25, new DateSimple(2003, 4, 25), 16,99.92));
		p.add(new Obligation("OAT 16", 100, (float) 4.25, new DateSimple(2007, 10, 25), 10,100.43));
		p.add(new Obligation("OAT 17", 100, (float) 4.25, new DateSimple(2007, 10, 25), 16,98.20));
		p.add(new Obligation("OAT 18", 100, (float) 4.75, new DateSimple(2002, 10, 25), 10,103.42));
		p.add(new Obligation("OAT 19", 100, (float) 4.75, new DateSimple(2004, 4, 25), 31,103.12));
		p.add(new Obligation("OAT 20", 100, (float) 5., new DateSimple(2001, 10, 25), 10,103.83));	
		p.add(new Obligation("OAT 21", 100, (float) 5., new DateSimple(2001, 10, 25), 15,106.34));
		p.add(new Obligation("OAT 22", 100, (float) 5., new DateSimple(2002, 4, 25), 10,104.27));
		p.add(new Obligation("OAT 23", 100, (float) 5.25, new DateSimple(1998, 4, 25), 10,100.25));
		p.add(new Obligation("OAT 24", 100, (float) 5.5, new DateSimple(2000, 4, 25), 10,103.51));	
		p.add(new Obligation("OAT 25", 100, (float) 5.5, new DateSimple(2000, 10, 25), 10,104.21));
		p.add(new Obligation("OAT 26", 100, (float) 5.5, new DateSimple(1998, 4, 25), 31,112.70));
		p.add(new Obligation("OAT 27", 100, (float) 5.75, new DateSimple(2001, 10, 25), 31,117.26));
		p.add(new Obligation("OAT 28", 100, (float) 6.5, new DateSimple(1996, 4, 25), 15,107.87));
		p.add(new Obligation("OAT 29", 100, (float) 8.5, new DateSimple(1992, 10, 25), 16,103.27));
		p.add(new Obligation("OAT 30", 100, (float) 8.5, new DateSimple(1992, 4, 25), 31,144.77));								
		
		Parametres.MAX_INTERPOL = 50;
		Parametres.date_estimation = new DateSimple(2008,1,10);
	}
	

	
	public static void importerSecteurPublic(Portefeuille p){
		p.add(new Obligation("ADP", 100, (float)4.95, new DateSimple(2000, 10, 24), 8,99.));
		p.add(new Obligation("FSE", 100, (float)6., new DateSimple(1996, 12, 17), 12,100.91));
		p.add(new Obligation("FSE", 100, (float)7.5, new DateSimple(1993, 5, 25), 15,100.05));
		p.add(new Obligation("CADES", 100, (float)5.25, new DateSimple(2000, 10, 25), 12,103.54));
		p.add(new Obligation("CADES", 100, (float)5.125, new DateSimple(2000, 10, 25), 8,97.02));
		p.add(new Obligation("CADES", 100, (float)3.75, new DateSimple(2000, 7, 11), 9,98.85));
		p.add(new Obligation("CCCC", 100, (float)5.3, new DateSimple(1998, 6, 28), 11,100));
		p.add(new Obligation("CCCC", 100, (float)6.4, new DateSimple(2000, 11, 14), 10,105.96));
		p.add(new Obligation("CFF", 100, (float)3.625, new DateSimple(2000, 1, 27), 8,98.75));
		p.add(new Obligation("CFF", 100, (float)4.25, new DateSimple(2000, 1, 28), 14,98.06));
		p.add(new Obligation("CFF", 100, (float) 4.5, new DateSimple(2000, 5, 15), 18,110.09));
		p.add(new Obligation("CHARBON", 100, (float) 4.125, new DateSimple(2000, 4, 25), 10,100.25));
		p.add(new Obligation("CHARBON", 100, (float) 5.5, new DateSimple(2000, 4, 24), 13,108.52));
		p.add(new Obligation("CHARBON", 100, (float) 5., new DateSimple(1998, 4, 24), 11,99.7));
		p.add(new Obligation("CHARBON", 100, (float) 5.5, new DateSimple(1997, 4, 24), 11,99.05));
		p.add(new Obligation("CNA", 100, (float) 4.385, new DateSimple(2000, 5, 18), 14,97.01));
		p.add(new Obligation("CNA", 100, (float) 4.5, new DateSimple(2000, 3, 27), 18,102.2));
		p.add(new Obligation("CNA", 100, (float) 4.5, new DateSimple(2000, 4, 24), 10,99.7));
		p.add(new Obligation("CNA", 100, (float) 5.8, new DateSimple(1997, 10, 19), 15,106.05));
		p.add(new Obligation("CNA", 100, (float) 5.85, new DateSimple(1997, 3, 23), 16,106.45));	
		p.add(new Obligation("CNA", 100, (float) 5.9, new DateSimple(1997, 6, 5), 14,104.86));	
		p.add(new Obligation("CNA", 100, (float) 6., new DateSimple(2000, 10, 25), 15,110.));
		p.add(new Obligation("CNA", 100, (float) 6., new DateSimple(1994, 1, 23), 15,101.01));	
		p.add(new Obligation("CNA", 100, (float) 6., new DateSimple(1996, 11, 12), 12,100.86));	
		p.add(new Obligation("CNA", 100, (float) 6.7, new DateSimple(1996, 2, 4), 14,104.54));
		p.add(new Obligation("CNA", 100, (float) 6.7, new DateSimple(1996, 9, 8), 15,107.12));
		p.add(new Obligation("CNA", 100, (float) 6.75, new DateSimple(1996, 7, 14), 13,103.35));
		p.add(new Obligation("CNA", 100, (float) 7.4, new DateSimple(1995, 11, 23), 13,101.93));
		p.add(new Obligation("CNA", 100, (float) 7.5, new DateSimple(1995, 6, 25), 15,106.91));
		p.add(new Obligation("CNA", 100, (float) 7.5, new DateSimple(1995, 9, 28), 14,104.27));
		p.add(new Obligation("CNA", 100, (float) 8., new DateSimple(1993, 2, 29), 15,100.07));
		p.add(new Obligation("CNA", 100, (float) 3.75, new DateSimple(2005, 7, 14), 20,86.5));	
		p.add(new Obligation("CRH", 100, (float) 4., new DateSimple(2002, 10, 24), 7,98.01));
		p.add(new Obligation("CRH", 100, (float) 4.1, new DateSimple(2004, 10, 24), 11,97.82));
		p.add(new Obligation("CRH", 100, (float) 4.2, new DateSimple(1999, 4, 24), 12,99.81));
		p.add(new Obligation("CRH", 100, (float) 4.25, new DateSimple(2003, 10, 24), 11,101.5));
		p.add(new Obligation("CRH", 100, (float) 5., new DateSimple(2002, 10, 24), 11,116.14));
		p.add(new Obligation("CRH", 100, (float) 5., new DateSimple(1999, 4, 24), 9,99.86));
		p.add(new Obligation("CRH", 100, (float) 5.75, new DateSimple(2000, 4, 24), 10,101.2));		
		p.add(new Obligation("C AMORT", 100, (float) 4.71, new DateSimple(1998, 5, 10), 10,106.42));
		p.add(new Obligation("C AMORT", 100, (float) 4.6, new DateSimple(1998, 7, 14), 12,104.6));	
		p.add(new Obligation("DEXIA CL", 100, (float) 6., new DateSimple(1997, 2, 25), 12,100.75));
		p.add(new Obligation("DEXIA MA", 100, (float) 5.5, new DateSimple(2000, 4, 25), 10,101.97));
		p.add(new Obligation("DEXIA MA", 100, (float) 3.25, new DateSimple(2000, 7, 11), 8,100.32));		
		p.add(new Obligation("DEXIA MA", 100, (float) 4.25, new DateSimple(2000, 2, 19), 13,96.03));
		p.add(new Obligation("DEXIA MA", 100, (float) 5.25, new DateSimple(2000, 2, 5), 17,107.06));	
		p.add(new Obligation("EDF", 100, (float) 3.75, new DateSimple(2000, 4, 7), 11,97.9));	
		p.add(new Obligation("EDF", 100, (float) 4.625, new DateSimple(2000, 11, 5), 13,107.44));
		p.add(new Obligation("EDF", 100, (float) 5., new DateSimple(2000, 1, 27), 9,100.35));
		p.add(new Obligation("EDF", 100, (float) 5.5, new DateSimple(2000, 10, 24), 16,101.5));		
		p.add(new Obligation("EDF", 100, (float) 5.75, new DateSimple(2000, 10, 24), 10,99.61));
		p.add(new Obligation("EDF", 100, (float) 6.25, new DateSimple(1993, 10, 19), 15,100.89));
		p.add(new Obligation("FIN FONC", 100, (float) 5.385, new DateSimple(2000, 3, 1), 13,107.71));		
		p.add(new Obligation("FIN FONC", 100, (float) 5.125, new DateSimple(2000, 10, 24), 8,99.4));
		p.add(new Obligation("FIN FONC", 100, (float) 5.625, new DateSimple(2000, 6, 24), 10,96.1));
		p.add(new Obligation("FTELECOM", 100, (float) 5.4, new DateSimple(1998, 4, 24), 10,99.76));
		p.add(new Obligation("FTELECOM", 100, (float) 5.7, new DateSimple(1997, 7, 24), 13,100.25));
		p.add(new Obligation("IXIS", 100, (float) 7.75, new DateSimple(1993, 5, 31), 26,126.96));
		p.add(new Obligation("IXIS", 100, (float)7.5, new DateSimple(1993, 8, 4), 15,101.));
		p.add(new Obligation("OSEO", 100, (float) 4.385, new DateSimple(1999, 4, 24), 12,96.6));
		p.add(new Obligation("OSEO", 100, (float)4.4, new DateSimple(1998, 4, 24), 11,97.11));	
		p.add(new Obligation("RATP", 100, (float) 5.75, new DateSimple(1997, 11, 4), 12,102.6));
		p.add(new Obligation("RATP", 100, (float) 6., new DateSimple(1994, 10, 13), 14,100.5));
		p.add(new Obligation("RFF", 100, (float) 5.6, new DateSimple(1997, 4, 24), 12,100.7));
		p.add(new Obligation("SNCF", 100, (float) 5.885, new DateSimple(2000, 10, 24), 10,102.9));
		p.add(new Obligation("SNCF", 100, (float) 6.75, new DateSimple(1996, 7, 21), 13,102.6));
		p.add(new Obligation("SNCF", 100, (float) 7.5, new DateSimple(1994, 4, 25), 14,100.47));
		
		Parametres.MAX_INTERPOL = 25;
		Parametres.date_estimation = new DateSimple(2008,1,11);
	}
	
}
